package com.wootion.dizhi.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wootion.dizhi.entity.Category;
import com.wootion.dizhi.vo.CategoryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryDao extends BaseMapper<Category> {
    /**
     * 根据父级id查询包含的所有子类
     * @param pid
     * @return
     */
    List<CategoryVo> categoryPId(@Param("pid")String pid);
}
